package com.abel.bigwater.dataserver.model.qdies

import io.netty.buffer.ByteBuf

open class MainAsk485ConfigData() : D10BaseData(1) {
    override var type = FuncType.Ask485Config

    var internalAddr: Byte? = null

    override fun fill(buf: ByteBuf) {
        buf.writeByte(internalAddr!!.toInt())
    }

    override fun parse(buf: ByteBuf): Boolean {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun count(): Int = 1
}

class MainConfig485Data() : DtenAsk485ConfigData(21) {
    override var type = FuncType.Config485
}